// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import keyControl from "./keyControl";

const {ccclass, property} = cc._decorator;

@ccclass
export default class roleTriggerMediator extends cc.Component {


    onBeginContact(contact, self, other) {
        keyControl.dropTable = true;
    }

    // onEndContact(contact, self, other) {
    //     console.log("11111");
    //     // keyControl.dropTable = false;
    // }
}
